#!/bin/bash
# Show battery icon only when battery is present
[ -f /sys/module/battery/initstate ] || [ -d /proc/acpi/battery/BAT0 ] && cbatticon --command-critical-level "systemctl hibernate" --critical-level 15 &